﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcmyjobs.Web.users
{
    public partial class checkname : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            if (Request.Form["t"] != null && Request.Form["name"] != null)
            {
                string i = Request.Form["t"];
                string uname = Request.Form["name"];
                lcmyjobs.BLL.user_basic bs = new BLL.user_basic();
                if (!bs.Exists(uname, i))
                {
                    Response.Write("1");
                }
                else
                {
                    Response.Write("0");
                }
            }
            else
            {
                Response.Write("0");
            }
            Response.End();


        }
    }
}